<div class="row">
    <?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'pagedata-_form-form',
        'enableAjaxValidation'=>false,
        'enableClientValidation'=>false,
        'clientOptions'=>array(  
            'validateOnSubmit'=>false,  
         ),
         'htmlOptions'=>array('class'=>'form-horizontal')
    )); ?>
    <div class="control-group">
        <label class="control-label"><?php echo $this->_attributePageLabels['title']; ?><s>*</s>：</label>
        <div class="controls control-row-auto">
            <?php echo $form->textField($this->oPageModel ,'title' ,array('class'=>'input-large')); ?> 
        </div>
    </div>
    <div class="control-group">
        <label class="control-label"><?php echo $this->_attributePageLabels['keywords']; ?>：</label>
        <div class="controls control-row-auto">
            <?php echo $form->textField($this->oPageModel ,'keywords' ,array('class'=>'input-large')); ?> 
        </div>
    </div>
    <div class="control-group">
        <label class="control-label"><?php echo $this->_attributePageLabels['content']; ?><s>*</s>：</label>
        <div class="controls control-row-auto">
            <?php 
            $value = isset($this->oPageModel->content) ? $this->oPageModel->content : '';
            $this->widget('ext.kindeditor.KindEditor',array(
                                'value' => $value,
                                'name'=>'content',
                                'width'=> '700px',
                                'height'=> '400px',
                                'toolbar' => 'full' 
                                //'item'=>"['emoticons','|','justifyleft', 'justifycenter', 'justifyright','justifyfull','|','fontsize','forecolor','bold','italic','underline']"
                                )
                            );
                            
            ?> 
        </div>
    </div>
    <div class="row">
      <div class="form-actions offset3">
        <?php
        $this->oPageModel->cate_id = isset($this->oPageModel->cate_id) ? $this->oPageModel->cate_id : $iCateId;
        echo $form->hiddenField($this->oPageModel ,'cate_id');
        ?>
        <button type="submit" class="button button-primary">保存</button>
        <button type="reset" class="button">重置</button>
      </div>
    </div>
    <?php $this->endWidget(); ?>
</div>
<script type="text/javascript">
var Form = BUI.Form;      
new Form.Form({
    srcNode : '#data-_form-form'
}).render();

function ruselinkurl() {
    if($('#islink').attr('checked')=='checked') {
            $('#linkurl').attr('disabled',false); 
    } else {
            $('#linkurl').attr('disabled','true');
    }
}
</script>
<!-- script start--> 
    <script type="text/javascript">
        
    </script>
<!-- script end -->

  </div>